import { GAMEMODEGS } from '../game_for_guosheng/GameGSDefine';
import { GameGSData } from '../game_for_guosheng/GameGSData';
cc.Class({
    extends: require('BaseGSPanel'),

    properties: {
    },

    onLoad() {
        this.dnmd();
    },

    onEnter(args, action = true) {
        this.dnmdonEnter(args, action);

    },

    onExit(args) {
        this.dnmdonExit(args);
    },

    FunMudPListener(button) {
        let name = button.node.name;
        if (name == 'btnClose') {
            this._onForGuoShenClose();
        } else if (name == 'btnNewGame') {
            GameGSData.setGameMode(GAMEMODEGS.DEFAULT);
            this._onForGuoShenClose();
            F.Game.loadScene('SceneGame');
        } else if (name == 'btnContinue') {
            GameGSData.setGameMode(GAMEMODEGS.CONTINUE);
            this._onForGuoShenClose();
            F.Game.loadScene('SceneGame');
        }

    },
    // _onTouchStart() {
    // },

});
